<!--{if $_G['uid']}-->
<div id="um">
    <div class="avt y  avatar"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G['uid'], 'middle')}--></a></div>
    <p>
        <strong class="d-sm-none vwmy{if !empty($_G['setting']['connect']['allow']) && $_G[member][conisbind]} qq{/if}"><a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
        <!--{if $_G['group']['allowinvisible']}-->
        <span id="loginstatus" class="d-sm-none">
            <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
        </span>
        <!--{/if}-->
        <span class="d-sm-none">
            <!--{hook/global_usernav_extra1}-->
        </span>
        <span class="pipe d-sm-none">|</span>
        <span class="d-sm-none">
            <!--{hook/global_usernav_extra4}--></span>
        <a href="javascript:;" id="myitem" class="showmenu" onmouseover="showMenu({'ctrlid':'myitem'});">{lang myitem}</a>
        <span class="pipe d-sm-none" >|</span>
        <a href="home.php?mod=spacecp">{lang setup}</a>
        <span class="pipe d-sm-none"  >|</span>
        <a href="home.php?mod=space&do=pm" id="pm_ntc" class=" d-sm-none {if $_G[member][newpm]} new {/if}" >{lang pm_center}</a>
        <span class="pipe d-sm-none"  >|</span>
        <a href="home.php?mod=space&do=notice" id="myprompt" class="a showmenu{if $_G[member][newprompt] && !$_G['setting']['bbclosed'] && empty($_G['member']['freeze']) && $_G['member']['groupid'] != 5} new{/if}" onmouseover="showMenu({'ctrlid':'myprompt'});">{lang remind}<!--{if $_G[member][newprompt] && !$_G['setting']['bbclosed'] && empty($_G['member']['freeze']) && $_G['member']['groupid'] != 5}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
        <!--{if empty($_G['cookie']['ignore_notice']) && !$_G['setting']['bbclosed'] && empty($_G['member']['freeze']) && $_G['member']['groupid'] != 5 && ($_G[member][newpm] || !empty($_G[member][newprompt_num][follower]) || !empty($_G[member][newprompt_num][follow]) || $_G[member][newprompt])}-->
        <script language="javascript">
            delayShow($('myprompt'), function() {
                showMenu({
                    'ctrlid': 'myprompt',
                    'duration': 3
                })
            });
        </script>
        <!--{/if}-->
        <!--{if !empty($_G['setting']['taskstatus']) && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}-->
        <span class="pipe d-sm-none">|</span>
        <a href="home.php?mod=task&item=doing" id="task_ntc" class="new">{lang task_doing}</a>
        <!--{/if}-->
        <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
        <span class="pipe d-sm-none">|</span>
        <a href="portal.php?mod=portalcp" class="d-sm-none"><!--{if $_G['setting']['portalstatus'] }-->
            {lang portal_manage}
            <!--{else}-->
            {lang portal_block_manage}
            <!--{/if}-->
        </a>
        <!--{/if}-->
        <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
        <span class="pipe d-sm-none">|</span>
        <a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank" class="d-sm-none">{lang forum_manager}</a>
        <!--{/if}-->
        <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
        <span class="pipe d-sm-none">|</span>
        <a href="admin.php" target="_blank" class="d-sm-none">{lang admincp}</a>
        <!--{/if}-->
        <!--{hook/global_usernav_extra2}-->
        <span class="pipe d-sm-none">|</span>
        <a href="member.php?mod=logging&action=logout&formhash={eval echo formhash();}" class="d-sm-none">{lang logout}</a>
    </p>
    <p class="d-sm-none">
        <!--{hook/global_usernav_extra3}-->
        <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu" {if !$_G[setting][bbclosed]} onmouseover="delayShow(this, showCreditmenu);" class="showmenu" {/if}>{lang credits}: $_G[member][credits]</a>
        <span class="pipe">|</span><a href="home.php?mod=spacecp&ac=usergroup" id="g_upmine" class="showmenu" onmouseover="delayShow(this, showUpgradeinfo)">{lang usergroup}: $_G[group][grouptitle]<!--{if $_G[member]['freeze']}--><span class="xi1">({lang freeze})</span><!--{/if}--></a>
    </p>
</div>
<!--{elseif !empty($_G['cookie']['loginuser'])}-->
<p>
    <strong>
        <a id="loginuser" class="noborder">
            <!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}-->
        </a>
    </strong>
    <span class="pipe">|</span>
    <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
    <span class="pipe" class="d-sm-none">|</span>
    <a href="member.php?mod=logging&action=logout&formhash={FORMHASH}" class="d-sm-none">{lang logout}</a>
</p>
<!--{elseif !$_G[connectguest]}-->
<!--{template member/login_simple}-->
<!--{else}-->
<div id="um ">
    <div class="avt y"><!--{avatar(0, 'middle')}--></div>
    <p>
        <strong class="vwmy qq">{$_G[member][username]}</strong>
        <!--{hook/global_usernav_extra1}-->
        <span class="pipe">|</span>
        <a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
    </p>
    <p>
        <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
        <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
    </p>
</div>
<!--{/if}-->